<script setup lang="ts">
import { ref } from 'vue'
import { getMenu } from '@/api/api'

const resData = ref()
const testT = async () => {
    const params = {
        token: '123'
    }
    const res = await getMenu(params)
    resData.value = res.data.data.menuList
    console.log(resData.value)
}
</script>
<template>
    <main>
        <h1>综合地质预报 - 设备管理</h1>
        <a-button style="width: 200px;" @click="testT">测试menu</a-button>
        <div>{{ resData }}</div>
    </main>
</template>